import {
	ref
} from 'vue'

import {
	defineStore
} from 'pinia'
export const useAppStore = defineStore('app', () => {
	// 地址信息
	const location = ref({
		'lng': '',
		'lat': '',
		'city': ''
	})

	const setLoction = (locitonData) => {
		location.value = locationData
	}
	return {
		location,
		setLoction
	}
}, {
	persist: {
		key: 'APP_CONFIG', // 本地存储key值
	}
})